import request from '@/utils/request'

// 渠道列表
export function listChannel(data) {
  return request({
    url: '/channel/listChannel',
    method: 'post',
    data
  })
}
// 添加
export function createChannel(data) {
  return request({
    url: '/channel/createChannel',
    method: 'post',
    data
  })
}
// 编辑
export function updateChannel(data) {
  return request({
    url: '/channel/updateChannel',
    method: 'post',
    data
  })
}
// 删除
export function delChannel(data) {
  return request({
    url: '/channel/delChannel',
    method: 'post',
    data
  })
}
// 渠道授权列表
export function channelEmpower(data) {
  return request({
    url: '/channel/channelEmpower',
    method: 'post',
    data
  })
}
// 渠道授权列表新增
export function createChannelEmpower(data) {
  return request({
    url: '/channel/createChannelEmpower',
    method: 'post',
    data
  })
}
// 渠道授权列表删除
export function delChannelEmpower(data) {
  return request({
    url: '/channel/delChannelEmpower',
    method: 'post',
    data
  })
}

// 渠道授权列表编辑
export function updateChannelEmpower(data) {
  return request({
    url: '/channel/updateChannelEmpower',
    method: 'post',
    data
  })
}
